package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IWorkerCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Description WorkerCertificationAudit
 * @Author apeng
 * @Date 2024-12-03
 */
@RestController("workerCertificationAuditController")
@RequestMapping("worker/worker-certification-audit")
@Api(tags = "服务端服务人员机构认证申请")
public class WorkerCertificationAuditController {

    @Autowired
    private IWorkerCertificationService workerCertificationService;


    @PostMapping
    @ApiOperation("提交认证申请")
    public void certificationApplication(@RequestBody WorkerCertificationAuditAddReqDTO dto){
        workerCertificationService.certificationApplication(dto);
    }


    @GetMapping("rejectReason")
    @ApiOperation("查询最新的驳回原因")
    public RejectReasonResDTO getJectReason(){
        return workerCertificationService.getJectReason();
    }
}
